package com.sunplus.system.registration.service.impl;

import java.util.List;

import com.sunplus.system.registration.service.IPortalRecordDetailsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.sunplus.system.registration.mapper.PortalRecordDetailsMapper;
import com.sunplus.system.registration.domain.PortalRecordDetails;

/**
 * 记录内容信息Service业务层处理
 * 
 * @author sunplus
 * @date 2021-03-25
 */
@Service
public class PortalRecordDetailsServiceImpl implements IPortalRecordDetailsService
{
    @Autowired
    private PortalRecordDetailsMapper portalRecordDetailsMapper;

    /**
     * 查询记录内容信息
     * 
     * @param pid 记录内容信息ID
     * @return 记录内容信息
     */
    @Override
    public PortalRecordDetails selectPortalRecordDetailsById(String pid)
    {
        return portalRecordDetailsMapper.selectPortalRecordDetailsById(pid);
    }

    /**
     * 查询记录内容信息列表
     * 
     * @param portalRecordDetails 记录内容信息
     * @return 记录内容信息
     */
    @Override
    public List<PortalRecordDetails> selectPortalRecordDetailsList(PortalRecordDetails portalRecordDetails)
    {
        return portalRecordDetailsMapper.selectPortalRecordDetailsList(portalRecordDetails);
    }

    /**
     * 新增记录内容信息
     * 
     * @param portalRecordDetails 记录内容信息
     * @return 结果
     */
    @Override
    public int insertPortalRecordDetails(PortalRecordDetails portalRecordDetails)
    {
        return portalRecordDetailsMapper.insertPortalRecordDetails(portalRecordDetails);
    }

    /**
     * 修改记录内容信息
     * 
     * @param portalRecordDetails 记录内容信息
     * @return 结果
     */
    @Override
    public int updatePortalRecordDetails(PortalRecordDetails portalRecordDetails)
    {
        return portalRecordDetailsMapper.updatePortalRecordDetails(portalRecordDetails);
    }

    /**
     * 批量删除记录内容信息
     * 
     * @param pids 需要删除的记录内容信息ID
     * @return 结果
     */
    @Override
    public int deletePortalRecordDetailsByIds(String[] pids)
    {
        return portalRecordDetailsMapper.deletePortalRecordDetailsByIds(pids);
    }

    /**
     * 删除记录内容信息信息
     * 
     * @param pid 记录内容信息ID
     * @return 结果
     */
    @Override
    public int deletePortalRecordDetailsById(String pid)
    {
        return portalRecordDetailsMapper.deletePortalRecordDetailsById(pid);
    }
}
